package com.epoch.servicecourse.dao;

import com.epoch.servicecourse.bean.TeacherCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author admin
 */
@Mapper
@Repository
public interface TeacherCourseDao {
    /**
     * get teacherCourse by teacherId and courseId
     * @param csId
     * @param courseId
     * @return
     */
    TeacherCourse getTeacherCourseById(@Param("csId") String csId, @Param("courseId") String courseId);

    /**
     * getCourseList
     * @return
     */
    List<TeacherCourse> getCourseList();

    /**
     * 通过类型 获取课程列表
     * @param typeContent
     * @return
     */
    List<TeacherCourse> getCourseListByTypeContent(@Param("typeContent") String typeContent);

    /**
     * 通过课程id获取课程类型、课程图片、课程名称、教师名称
     * @param courseId
     * @return
     */
    TeacherCourse getCourseByCourseId(@Param("courseId") String courseId);

    int deleteCourseById(String courseId);

    List<TeacherCourse> getCourseById(String csId);
}
